__author__ = 'Administrator'
import uuid, hmac, hashlib

print(uuid.uuid1())

key = bytes("a", 'gbk')
data = bytes('b', 'gbk')
print(hmac.new(key, data, hashlib.sha256).hexdigest())

m = hashlib.sha1()
m.update('The quick brown fox jumps over the lazy dog'.encode('gbk'))
print(m.hexdigest())


